package com.shop.core.constants;

/**
 * 基础常量类
 * 
 * @author Shine
 * @date 2016年6月20日14:03:37
 * @version 1.0
 *
 */
public class BaseConstants {

	/**
	 * 页面常量
	 */
	public static class Page {
		public static final int NO_PAGE_FOUND = 404;// 未找到页面

	}

	/**
	 * 编码常量
	 */
	public static class Encoding {

		public static final String GBK = "GBK";

		public static final String UTF8 = "UTF-8";
	}

	/**
	 * 参数类型
	 */
	public static class DataType {

		public static final String APP_EXCEL = "application/vnd.ms-excel";

		public static final String APP_WORD = "application/msword";

		public static final String APP_JSON = "application/JSON";

		public static final String APP_DOWNLOAD = "application/x-msdownload";

		public static final String IMG_GIF = "image/GIF";

		public static final String IMG_JPEG = "image/JPEG";

		public static final String TEXT_PLAIN = "text/PLAIN";

		public static final String TEXT_HTML = "text/text;charset=UTF-8";

		public static final String TEXT_JSON = "text/JSON";

		public static final String TEXT_XML = "text/XML";

		public static final String TEXT_JAVASCRIPT = "text/javascript";
	}

	/**
	 * 操作系统常量
	 */
	public static class System {

		public static final String OS_NAME = "os.name";

		public static final String USER_DIR = "user.dir";

		public static final String CLASS_PATH = "java.class.path";

		public static final String USER_LANGUAGE = "user.language";

		public static final String FILE_SEPARATOR = "file.separator";

		public static final String SUN_DESKTOP = "sun.desktop";
	}

}
